# -*- coding:utf-8 -*-
__author__ = 'weikai'

from gevent import monkey; monkey.patch_socket()
import gevent

def fub(a,b):
    return a+b


g1 = gevent.spawn(fub, 1,2)
g2 = gevent.spawn(fub,1,3)
g3 = gevent.spawn(fub, 1,4)
gevent.joinall([g1,g2,g3])


print(g2.value)